#ifndef CTEXTUREMANAGER_H_
#define CTEXTUREMANAGER_H_
#include <vector>
using namespace std;

struct Texture
{
	char			m_szFile[40];
	unsigned int	m_unHandle;
	int				m_nWidth, m_nHeight;
};

class CTextureManager
{
private:
	vector<Texture *>	m_vTextureList;

	CTextureManager();
	CTextureManager(CTextureManager &) { }
	CTextureManager &operator=(CTextureManager &) { }
public:
	~CTextureManager() { ReleaseAll(); }

	static CTextureManager *GetInstance();

	Texture *LoadTexture(char *szFile);
	Texture *LoadTextureFromMemory(char *szFileName, char *pData);
	void ReleaseAll();
};

#endif